package com.evony.common.beans 
{
    import flash.events.*;
    import mx.events.*;
    
    public class NpcHeroBean extends Object
    {
        public function NpcHeroBean(arg1:Object=null)
        {
            super();
            var loc1:*=0;
            _bindingEventDispatcher = new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
            if (arg1 != null) 
            {
                if (arg1.ability != null) 
                {
                    this.ability = arg1.ability;
                }
                if (arg1.affairs_base != null) 
                {
                    this.affairs_base = arg1.affairs_base;
                }
                if (arg1.bravery_base != null) 
                {
                    this.bravery_base = arg1.bravery_base;
                }
                if (arg1.catchQuestId != null) 
                {
                    this.catchQuestId = arg1.catchQuestId;
                }
                if (arg1.face != null) 
                {
                    this.face = arg1.face;
                }
                if (arg1.field != null) 
                {
                    this.field = arg1.field;
                }
                if (arg1.hireQuestId != null) 
                {
                    this.hireQuestId = arg1.hireQuestId;
                }
                if (arg1.introduce != null) 
                {
                    this.introduce = arg1.introduce;
                }
                if (arg1.leadership != null) 
                {
                    this.leadership = arg1.leadership;
                }
                if (arg1.leadership_Added != null) 
                {
                    this.leadership_Added = arg1.leadership_Added;
                }
                if (arg1.level != null) 
                {
                    this.level = arg1.level;
                }
                if (arg1.loyalty != null) 
                {
                    this.loyalty = arg1.loyalty;
                }
                if (arg1.management != null) 
                {
                    this.management = arg1.management;
                }
                if (arg1.management_Added != null) 
                {
                    this.management_Added = arg1.management_Added;
                }
                if (arg1.name != null) 
                {
                    this.name = arg1.name;
                }
                if (arg1.npcid != null) 
                {
                    this.npcid = arg1.npcid;
                }
                if (arg1.power != null) 
                {
                    this.power = arg1.power;
                }
                if (arg1.power_Added != null) 
                {
                    this.power_Added = arg1.power_Added;
                }
                if (arg1.province != null) 
                {
                    this.province = arg1.province;
                }
                if (arg1.questType != null) 
                {
                    this.questType = arg1.questType;
                }
                if (arg1.sex != null) 
                {
                    this.sex = arg1.sex;
                }
                if (arg1.status != null) 
                {
                    this.status = arg1.status;
                }
                if (arg1.stratagem != null) 
                {
                    this.stratagem = arg1.stratagem;
                }
                if (arg1.stratagem_Added != null) 
                {
                    this.stratagem_Added = arg1.stratagem_Added;
                }
                if (arg1.type != null) 
                {
                    this.type = arg1.type;
                }
                if (arg1.uid != null) 
                {
                    this.uid = arg1.uid;
                }
                if (arg1.wisdom_base != null) 
                {
                    this.wisdom_base = arg1.wisdom_base;
                }
                if (arg1.zi != null) 
                {
                    this.zi = arg1.zi;
                }
                if (arg1.logoimage != null) 
                {
                    this.logoimage = arg1.logoimage;
                }
                if (arg1.taskitemid != null) 
                {
                    this.taskitemid = arg1.taskitemid;
                }
            }
            return;
        }

        public function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="";
            loc2 = loc2 + (arg1 + "ability = " + this.ability + "\n");
            loc2 = loc2 + (arg1 + "affairs_base = " + this.affairs_base + "\n");
            loc2 = loc2 + (arg1 + "bravery_base = " + this.bravery_base + "\n");
            loc2 = loc2 + (arg1 + "catchQuestId = " + this.catchQuestId + "\n");
            loc2 = loc2 + (arg1 + "face = " + this.face + "\n");
            loc2 = loc2 + (arg1 + "field = " + this.field + "\n");
            loc2 = loc2 + (arg1 + "hireQuestId = " + this.hireQuestId + "\n");
            loc2 = loc2 + (arg1 + "introduce = " + this.introduce + "\n");
            loc2 = loc2 + (arg1 + "leadership = " + this.leadership + "\n");
            loc2 = loc2 + (arg1 + "leadership_Added = " + this.leadership_Added + "\n");
            loc2 = loc2 + (arg1 + "level = " + this.level + "\n");
            loc2 = loc2 + (arg1 + "loyalty = " + this.loyalty + "\n");
            loc2 = loc2 + (arg1 + "management = " + this.management + "\n");
            loc2 = loc2 + (arg1 + "management_Added = " + this.management_Added + "\n");
            loc2 = loc2 + (arg1 + "name = " + this.name + "\n");
            loc2 = loc2 + (arg1 + "npcid = " + this.npcid + "\n");
            loc2 = loc2 + (arg1 + "power = " + this.power + "\n");
            loc2 = loc2 + (arg1 + "power_Added = " + this.power_Added + "\n");
            loc2 = loc2 + (arg1 + "province = " + this.province + "\n");
            loc2 = loc2 + (arg1 + "questType = " + this.questType + "\n");
            loc2 = loc2 + (arg1 + "sex = " + this.sex + "\n");
            loc2 = loc2 + (arg1 + "status = " + this.status + "\n");
            loc2 = loc2 + (arg1 + "stratagem = " + this.stratagem + "\n");
            loc2 = loc2 + (arg1 + "stratagem_Added = " + this.stratagem_Added + "\n");
            loc2 = loc2 + (arg1 + "type = " + this.type + "\n");
            loc2 = loc2 + (arg1 + "uid = " + this.uid + "\n");
            loc2 = loc2 + (arg1 + "wisdom_base = " + this.wisdom_base + "\n");
            loc2 = loc2 + (arg1 + "zi = " + this.zi + "\n");
            loc2 = loc2 + (arg1 + "logoimage = " + this.logoimage + "\n");
            loc2 = loc2 + (arg1 + "taskitemid = " + this.taskitemid + "\n");
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.beans.NpcHeroBean):void
        {
            arg1.ability = this.ability;
            arg1.affairs_base = this.affairs_base;
            arg1.bravery_base = this.bravery_base;
            arg1.catchQuestId = this.catchQuestId;
            arg1.face = this.face;
            arg1.field = this.field;
            arg1.hireQuestId = this.hireQuestId;
            arg1.introduce = this.introduce;
            arg1.leadership = this.leadership;
            arg1.leadership_Added = this.leadership_Added;
            arg1.level = this.level;
            arg1.loyalty = this.loyalty;
            arg1.management = this.management;
            arg1.management_Added = this.management_Added;
            arg1.name = this.name;
            arg1.npcid = this.npcid;
            arg1.power = this.power;
            arg1.power_Added = this.power_Added;
            arg1.province = this.province;
            arg1.questType = this.questType;
            arg1.sex = this.sex;
            arg1.status = this.status;
            arg1.stratagem = this.stratagem;
            arg1.stratagem_Added = this.stratagem_Added;
            arg1.type = this.type;
            arg1.uid = this.uid;
            arg1.wisdom_base = this.wisdom_base;
            arg1.zi = this.zi;
            arg1.logoimage = this.logoimage;
            arg1.taskitemid = this.taskitemid;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.ability = this.ability;
            loc1.affairs_base = this.affairs_base;
            loc1.bravery_base = this.bravery_base;
            loc1.catchQuestId = this.catchQuestId;
            loc1.face = this.face;
            loc1.field = this.field;
            loc1.hireQuestId = this.hireQuestId;
            loc1.introduce = this.introduce;
            loc1.leadership = this.leadership;
            loc1.leadership_Added = this.leadership_Added;
            loc1.level = this.level;
            loc1.loyalty = this.loyalty;
            loc1.management = this.management;
            loc1.management_Added = this.management_Added;
            loc1.name = this.name;
            loc1.npcid = this.npcid;
            loc1.power = this.power;
            loc1.power_Added = this.power_Added;
            loc1.province = this.province;
            loc1.questType = this.questType;
            loc1.sex = this.sex;
            loc1.status = this.status;
            loc1.stratagem = this.stratagem;
            loc1.stratagem_Added = this.stratagem_Added;
            loc1.type = this.type;
            loc1.uid = this.uid;
            loc1.wisdom_base = this.wisdom_base;
            loc1.zi = this.zi;
            loc1.logoimage = this.logoimage;
            loc1.taskitemid = this.taskitemid;
            return loc1;
        }

        public static const GENERAL_NPC_HERO:int=0;

        public static const HIRED_STATUS:int=2;

        public static const FREE_STATUS:int=0;

        public static const CATCH_STATUS:int=1;

        [Bindable]
        public var type:int;

        [Bindable]
        public var management:int;

        [Bindable]
        public var sex:int;

        [Bindable]
        public var ability:int;

        [Bindable]
        public var power:int;

        [Bindable]
        public var wisdom_base:int;

        [Bindable]
        public var logoimage:String;

        [Bindable]
        public var field:int;

        [Bindable]
        public var leadership_Added:int;

        [Bindable]
        public var power_Added:int;

        [Bindable]
        public var stratagem_Added:int;

        [Bindable]
        public var bravery_base:int;

        [Bindable]
        public var management_Added:int;

        [Bindable]
        public var hireQuestId:int;

        [Bindable]
        public var face:int;

        [Bindable]
        public var level:int;

        [Bindable]
        public var uid:int;

        [Bindable]
        public var questType:int;

        [Bindable]
        public var affairs_base:int;

        [Bindable]
        public var status:int;

        [Bindable]
        public var taskitemid:String;

        [Bindable]
        public var zi:String;

        [Bindable]
        public var loyalty:int;

        [Bindable]
        public var catchQuestId:int;

        [Bindable]
        public var name:String;

        [Bindable]
        public var leadership:int;

        [Bindable]
        public var stratagem:int;

        [Bindable]
        public var npcid:int;

        [Bindable]
        public var introduce:String;

        [Bindable]
        public var province:String;
    }
}
